import request from '@/utils/request'

// 查询调度员管理列表
export function listDispatcher(query) {
  return request({
    url: '/manager/dispatcher/list',
    method: 'get',
    params: query
  })
}

// 查询调度员管理详细
export function getDispatcher(dispatcherid) {
  return request({
    url: '/manager/dispatcher/' + dispatcherid,
    method: 'get'
  })
}

// 新增调度员管理
export function addDispatcher(data) {
  return request({
    url: '/manager/dispatcher',
    method: 'post',
    data: data
  })
}

// 修改调度员管理
export function updateDispatcher(data) {
  return request({
    url: '/manager/dispatcher',
    method: 'put',
    data: data
  })
}

// 删除调度员管理
export function delDispatcher(dispatcherid) {
  return request({
    url: '/manager/dispatcher/' + dispatcherid,
    method: 'delete'
  })
}

// 导出调度员管理
export function exportDispatcher(query) {
  return request({
    url: '/manager/dispatcher/export',
    method: 'get',
    params: query
  })
}
